<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lx')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-lx" data-rule="required" class="form-control selectpicker" name="row[lx]">
                {foreach name="lxList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-category_id" data-rule="required" data-source="category/selectpage" data-params='{"custom[pid]":"42","custom[status]":"normal"}' class="form-control selectpage" name="row[category_id]" type="text" value="39">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Newhouse_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-newhouse_ids" data-rule="required" data-source="newhouse/selectpage" data-params='{"custom[flag]":"1"}' data-multiple="false" class="form-control selectpage" name="row[newhouse_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group newhouse_layout_class" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Newhouse_layout_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-newhouse_layout_ids" data-rule="" data-source="newhouse/layout/selectpage" data-params='{"custom[flag]":"1"}' data-multiple="true" class="form-control selectpage" name="row[newhouse_layout_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group fovi_class" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fovi')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-fovi" data-rule="required" class="form-control selectpicker" name="row[fovi]">
                {foreach name="foviList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Url1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-url1" data-rule="required" class="form-control" name="row[url1]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Describe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-describe" class="form-control" name="row[describe]" type="text" placeholder="20字内" maxlength="20">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group" style="display: flex;">
                <input id="c-pic" class="form-control" size="50" name="row[pic]" data-rule="required" type="hidden">
                <div class="input-group no-border no-padding">
                    <span><button type="button" id="plupload-pic" class="btn btn-danger plupload" data-multipart={"module":"h/pic"} data-maxcount="1" data-maxsize="500k" data-input-id="c-pic" data-mimetype="image/jpeg,image/png,image/jpg" data-preview-id="p-pic"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-pic"></span>
                <span style="margin: 7px 10px;display: block;">尺寸：1280*1280，小于500kb</span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-pic"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" class="form-control" name="row[admin_id]" type="hidden" value="{:$auth->id}">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
